<%@ page language="java" import="nc.bs.ebvp.login.Constant"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Yonyou NC 电子商务采购平台</title>
		<base href="<%=basePath%>"></base>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/index.css" rel="stylesheet" type="text/css" />
		<link href="css/ebvp.css" rel="stylesheet" type="text/css" />
		<script src="js/jquery-1.4.4.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript" src="<%=path%>/js/register.js"></script>
		


		<script type="text/javascript">		
         jQuery(document).ready(
         function()
         	{        		      		
         		jQuery("#codefont").click(
         			function() 
         			{        	
         				//alert("111");
         				//加一个不同的参数导致URL地址不同，才会重新发起请汿
         				jQuery("#codeimageid").attr("src","randomid?num="+new Date().getTime());
         			}
         		);   
         		
         		jQuery("#forget").click(
         			function()
         			{
         				if(jQuery("#supusername").val() ==''){
         					jQuery("#errorM").html("请输入用户名");
         					return false;
         				}else{
         					jQuery("#forget").attr("href","<%=path%>/lostpwd?name="+jQuery("#supusername").val());
         				}
         			}
         		)
         	}   
         )
         
       	var strOs = "";
       	var navig = navigator.userAgent;
       	if(navig.indexOf("MSIE") > 0){
       		strOs = "MSIE";
       	}
       	if(navig.indexOf("Firefox") > 0){
       		strOs = "Firefox";
       	}
       	if(navig.indexOf("Safari") > 0){
       		strOs = "Safari";
       	}
       	if(navig.indexOf("Chrome") > 0){
       		strOs = "Chrome";
       	}
         
	</script>
	</head>
	<body>
		<form action="<%=path%>/login/login" method="post"
			onsubmit="return inputCheck();">
			<div class="log">
				<div class="top">
					<div class="title"></div>
					<div class="title1"></div>
					<div class="title2"></div>
					<div class="title3"></div>
					<div class="title4"></div>
					<div class="title5"></div>
				</div>
				<div class="shadow">
				</div>
				<div class="bottom">
					<div class="copy2">
						<div class="pic">
							<img src="images/index/logo2.png" alt="" />
						</div>
						<div class="txt">
							&copy;&nbsp;Copyright 2010-2012 Yonyou Software CO.LTD all rights reserved
						</div>
					</div>
				</div>
			</div>
			<div id="logwindow">
				<div class="input">
					<div class="margin40">
					<img src="images/index/icon_user.png" border="0" alt="" />&nbsp;用户名：<input id="supusername" name="supusername" type="text" class="textstyle" value="${supusername}" tabindex="1"/>&nbsp;&nbsp;<a href="selfservice/register/stepone.jsp">注册账号</a>
					</div>
					<div class="margin40">
					<img src="images/index/icon_pass.png" border="0" alt="" />&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;码：<input name="suppwd" type="password" class="textstyle" value="${suppwd}" tabindex="2"/>&nbsp;&nbsp;<a id="forget" style="cursor: hand;">忘记密码</a>
					</div>
					<img src="images/index/icon_code.png" border="0" alt="" />&nbsp;验证码：<input id="usercode" name="usercode" type="text" class="textstyle" tabindex="3"/>&nbsp;&nbsp;<img id="codeimageid" class="codeimg" src="randomid" alt="" />&nbsp;<font id="codefont" class="fontstyle">换一张</font>
				</div>
				<div class="button">
					<input type="submit" class="logbutton" value="" tabindex="4"/>
					<div id="errorM" class="mycolor">
						<c:out value="${ERROR_MESSAGE}"></c:out>
					</div>
				</div>
			</div>
			<p></p>
		</form>
	</body>
</html>
